﻿using SIR.Common;
using SIR.Entities.Interfaces;

namespace SIR.Entities.Implementations
{
	/// <summary>
	/// The raw data associated to the actual image
	/// </summary>
	public class ImageData : Entity, IImageData
	{
		/// <summary>
		/// Creates the image thumb object with an empty byte array for the data
		/// </summary>
		public ImageData()
			: base()
		{
			Data = new byte[0];
		}
		/// <summary>
		/// Gets or sets the identifier for the image
		/// </summary>
		[DatabaseAccess(DatabaseAccessRights.ReadWrite)]
		public long ImageId { get; set; }
		/// <summary>
		/// Gets or sets the binary data that is the image
		/// </summary>
		[DatabaseAccess(DatabaseAccessRights.ReadWrite)]
		public byte[] Data { get; set; }

	}

}
